<?php
/**
 * 代建例会纪要
 * @author YangL
 **/
namespace Admin\Controller;
use Common\Controller\WahahabaseController;
class ConstructionAgentMeetingController extends WahahabaseController {
	public function _initialize() {
		parent::_initialize();
		$this->deal_model = D("Common/ConstructionAgentMeeting");
		$this->att_model = D("Common/Attachment");
		
		$this->check = array('code');
	}

	public function index(){
		$where = array("d.is_deleted"=>array('neq', 1));
		$topic_for_discussion = I('request.topic_for_discussion');
		if($topic_for_discussion){
			$where['topic_for_discussion'] = array('like',"%$topic_for_discussion%");
		}
		$this->getDepartLevel();
		$this->indexPage($where);
	}

	public function add(){
		$this->display();
	}	
	public function add_post(){
		$this->addFilePost(U("ConstructionAgentMeeting/index"), 3);
	}
	
	public function view(){
		$this->getDepartLevel();
		$this->editFileDisplay(3);
	}
	
	public function edit(){
		$this->editFileDisplay(3);
	}
	public function edit_post(){
		$this->editFilePost(U("ConstructionAgentMeeting/index"), 3);
	}
}